﻿@model IEnumerable<WebSoftSeo.Models.ServicesDetail>
@using WebSoftSeo.Models;
@{
    WebSoftSeoEntities db = new WebSoftSeoEntities();
    ViewBag.Title = "Index";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
    List<ServicesDetail> service1 = ViewBag.service1 as List<ServicesDetail>;
    List<ServicesDetail> service3 = ViewBag.service3 as List<ServicesDetail>;
    
}

<div class="mar10 borall">
    <div class="floatl">
        <span class="floatl">
            <img src="/Areas/Admin/images/icon-48-generic.png" /></span>
        <span class="title-name">Service Banner</span>
    </div>
   @* <ul class="floatr toolbar-list">
        <li class="button">
            <a class="toolbar" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Create?type=1">
                <span class="icon-32-new"></span>
                Thêm mới
            </a>
        </li>
    </ul>*@
</div>

<!--end borall-->


<div class="mar10 borall">
    <table class="formtable">
        <tbody>
            <tr>
                <th>Loại Dịch Vụ
                </th>


                <th>Mô tả ngắn</th>


                <th style="float: right">Action</th>


                <th></th>
            </tr>

            @foreach (var item in service1)
            {
                <tr>
                    <td style="width: 30%">
                        @Html.DisplayFor(modelItem => item.Name)
                    </td>

                    <td>
                        @Html.DisplayFor(modelItem => item.ShortDescription)
                    </td>


                    <td></td>
                    <td style="text-align: right">
                        <a class="button blue" style="float:right" title="Sửa" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Edit?id=@item.ID">
                            <div class="icon">
                                <p class="ic-edit"></p>
                            </div>
                        </a>
                       @* <a class="button red" style="float:right" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Delete?id=@item.ID" title="Xóa">
                            <div class="icon">
                                <p class="ic-delete"></p>
                            </div>
                        </a>*@

                    </td>
                </tr>
            }
        </tbody>
    </table>

</div>


<div class="mar10 borall">
    <div class="floatl">
        <span class="floatl">
            <img src="/Areas/Admin/images/icon-48-generic.png" /></span>
        <span class="title-name">Service</span>
    </div>
    <ul class="floatr toolbar-list">
        <li class="button">
            <a class="toolbar" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Create?type=2">
                <span class="icon-32-new"></span>
                Thêm mới
            </a>
        </li>
    </ul>
</div>

<!--end borall-->

@*<div class="clear0"></div>*@
<div class="mar10 borall">
    <table class="formtable">
        <tbody>
            <tr>
                <th>Loại Dịch Vụ
                </th>
                <th>Mô tả ngắn</th>
                <th style="float: right">Action</th>
            </tr>

            @foreach (var item in Model)
            {
                <tr>
                    <td style="width: 30%">
                        @Html.DisplayFor(modelItem => item.Name)
                    </td>

                    <td>
                        @Html.DisplayFor(modelItem => item.ShortDescription)
                    </td>



                    <td style="text-align: right">
                        <a class="button blue" style="float:right" title="Sửa" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Edit?id=@item.ID">
                            <div class="icon">
                                <p class="ic-edit"></p>
                            </div>
                        </a>
                        <a class="button red" style="float:right" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Delete?id=@item.ID" title="Xóa">
                            <div class="icon">
                                <p class="ic-delete"></p>
                            </div>
                        </a>

                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
<div class="mar10 borall">
    <div class="floatl">
        <span class="floatl">
            <img src="/Areas/Admin/images/icon-48-generic.png" /></span>
        <span class="title-name">Service Specifications</span>
    </div>
    <ul class="floatr toolbar-list">
        <li class="button">
            <a class="toolbar" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Create?type=3">
                <span class="icon-32-new"></span>
                Thêm mới
            </a>
        </li>
    </ul>
</div>

<!--end borall-->

@* <div class="clear0"></div>*@
<div class="mar10 borall">
    <table class="formtable">
        <tbody>
            <tr>
                <th>Loại Dịch Vụ
                </th>
                <th>Mô tả ngắn</th>
                <th style="float:right">Action</th>
            </tr>

            @foreach (var item in service3)
            {
                <tr>
                    <td style="width: 30%">
                        @Html.DisplayFor(modelItem => item.Name)
                    </td>

                    <td>
                        @Html.DisplayFor(modelItem => item.ShortDescription)
                    </td>



                    <td>
                        <a class="button blue" style="float:right" title="Sửa" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Edit?id=@item.ID">
                            <div class="icon">
                                <p class="ic-edit"></p>
                            </div>
                        </a>
                        <a class="button red" href="/@WebSoftSeo.Models.GlobalVariables.PathFolderName/Service/Delete?id=@item.ID" title="Xóa">
                            <div class="icon">
                                <p class="ic-delete"></p>
                            </div>
                        </a>

                    </td>
                </tr>
            }
        </tbody>
    </table>

</div>
<script>$("tr:even").css("background-color", "#f2f2f2");</script>
